package com.zjbd.douyangcommoncore.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.zjbd.douyangcommoncore.annotation.DouYangAutoTable;
import lombok.Data;
import org.dromara.autotable.annotation.ColumnComment;
import org.dromara.autotable.annotation.ColumnType;
import org.dromara.autotable.annotation.mysql.MysqlTypeConstant;
import org.dromara.mpe.autotable.annotation.ColumnId;
import org.dromara.mpe.autotable.annotation.Table;

@Data
@DouYangAutoTable(tableName = "dy_video", generateService = true)
@Table(value = "dy_video", comment = "视频表")
public class VideoPo {

    @ColumnComment("id")
    @ColumnId(mode = IdType.AUTO, comment = "id主键", type = MysqlTypeConstant.BIGINT, length = 32)
    private String id;

    // 指定字段长度
    @ColumnType(length = 100)
    @ColumnComment("标题")
    private String title;

    //简介
    @ColumnType(length = 200)
    @ColumnComment("简介")
    private String introduction;

    //视频播放地址
    @ColumnType(length = 500)
    @ColumnComment("视频播放地址")
    private String videoUrl;

    //作者
    @ColumnType(length = 100)
    @ColumnComment("作者Id")
    private String userId;

    //点赞数
    @ColumnType(length = 11)
    @ColumnComment("点赞数")
    private Integer likeCount;

    //播放数
    @ColumnType(length = 11)
    @ColumnComment("播放数")
    private Integer playCount;

    //收藏数
    @ColumnType(length = 11)
    @ColumnComment("收藏数")
    private Integer collectCount;

    //评论数
    @ColumnType(length = 11)
    @ColumnComment("评论数")
    private Integer commentCount;

    //转发
    @ColumnType(length = 11)
    @ColumnComment("转发")
    private Integer forwardCount;

}
